package org.leviatan.dataharbour.gui.swingmodels;

import javax.swing.tree.DefaultMutableTreeNode;

import org.leviatan.dataharbour.core.model.HarbourRequest;

public class TreeNodeMdlHarbourRequest extends DefaultMutableTreeNode {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3150261204450409840L;

	private String id;
	
	private String name;
	
	private HarbourRequest theMdl;

	

	
	public TreeNodeMdlHarbourRequest(HarbourRequest reqMdl) {
		super();
		this.theMdl = reqMdl;
		//HarbourRequestHandler.assignGeneratedIds(this.theMdl);
		this.id = reqMdl.getId();
		this.setUserObject(this);
	}

	public String getId() {
		return this.id;
	}

	public String getName() {
		return this.name;
	}

	public void setId(String aId) {
		this.id = aId;
	}

	public void setName(String aName) {
		this.name = aName;
	}
	
	public String toString() {
		return "[harbour-request] " + this.id;	
	}

	public HarbourRequest getTheMdl() {
		return theMdl;
	}

	public void setTheMdl(HarbourRequest theMdl) {
		this.theMdl = theMdl;
	}

}
